import 'package:flutter/material.dart';
import 'package:flutter_app/colors/my_colors.dart';
import 'package:flutter_app/screen_page.dart' as prefix1;

//点击按钮
class ButtonPage extends StatelessWidget {
  String title;
  VoidCallback _callback;

  ButtonPage(this.title, this._callback);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: _callback,
      child: Container(
        width: prefix1.width(375),
        height: prefix1.height(50),
        margin:
            EdgeInsets.only(left: prefix1.width(12), right: prefix1.width(12)),
        decoration: BoxDecoration(
            color: MyColors.red_ff4646,
            borderRadius: BorderRadius.circular(prefix1.height(5))),
        child: Center(
          child: Text(title,
              style: TextStyle(fontSize: prefix1.sp(14), color: Colors.white)),
        ),
      ),
    );
  }
}
